package com.rykj.energy.database.service;

import com.rykj.energy.common.dto.TaskCameraRelationDto;
import com.rykj.energy.database.pojo.TaskCameraRelation;
import com.rykj.energy.database.pojo.TaskInfo;

import java.util.List;

public interface ITaskInfoService {

    /**
     * 根据任务code进行任务新增/修改
     * @param taskInfo
     * @return
     * @throws Exception
     */
    public TaskInfo saveOrUpdateTask(TaskInfo taskInfo) throws Exception;

    public TaskInfo findByCode(String taskCode) throws Exception;

    public List<TaskCameraRelationDto> findRunTasks() throws Exception;

    TaskCameraRelation findByTaskIdAndCameraIdAndPreseId(Integer taskId, Integer cameraId, Integer preseId);
}
